﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for DayNightBLL
/// </summary>
public class DayNightBLL : IDayNightBLL
{
    //inject DAL
    private IDayNightDAL dayNightDAL = Factory<IDayNightDAL>.CreateInstance();


    public DayNightBLL()
    {
        //
        // TODO: Add constructor logic here
        //
    }
    #region IDayNightBLL Members

    List<DayNight> IDayNightBLL.GetAll()
    {
        try
        {
            return dayNightDAL.GetAll();
        }
        catch (Exception)
        {
            throw;
        }
    }

    public bool Save(List<DayNight> list)
    {
        try
        {
            return dayNightDAL.Save(list);
        }
        catch (Exception)
        {
            throw;
        }
    }

    #endregion
}